package com.lingxu.api.ztb.mapper;

import com.lingxu.api.ztb.model.ProjectInfo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.api.ztb.model.vo.ProjectInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;


import java.util.List;
import java.util.Map;

/**
 * 项目信息表 Mapper接口
 *
 * @author admin
 * @since 2025-08-13
 */
@Mapper
public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {
    /**
     * 查询项目信息表
     *
     * @return
     */
    List<ProjectInfoVO> selectProjectInfoList(@Param("query") ProjectInfoVO vo);

    IPage<ProjectInfoVO> pageList(@Param("page") Page<ProjectInfoVO> page, @Param("query") ProjectInfoVO vo);

    List<ProjectInfoVO> getDataForExport(@Param("query") ProjectInfoVO vo);

    void createTempTable(@Param("batchFlag")String batchFlag);
    void insertTempTable(@Param("list") List<ProjectInfoVO> dataList, @Param("batchFlag")String batchFlag);
    void insertTable(@Param("batchFlag")String batchFlag);
    void dropTempTable(@Param("batchFlag")String batchFlag);

    List<Map<String, Object>> getGsgxProjectProgressList();

    ProjectInfo getProjectDetail(@Param("project_name") String projectName);
}
